import React from 'react';
import { Button } from 'antd';
import CommonList from '../../../components/CommonLists/list';

class EventMonitorList extends CommonList {
  constructor(props) {
    super(props);
    this.api = 'eventMonitor';
    this.detailButton = record => {
      return (
        <Button
          size='small'
          type='link'
          onClick={this.props.showDetail.bind(this, record, '数据详情', 800)}
          disabled={record.audit_status === this.AUDIT._WAIT}
        >
          详情
        </Button>
      );
    };
    this.btnGroup = [this.detailButton];
  }
  componentDidMount() {}
}

export default EventMonitorList;
